#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_execrise3.py
# author:wmf
# datetime:2021/3/15 15:42
# software: PyCharm
'''
this is function description
'''
# import module your need

#初始化一个列表(1 - 20
#之间的整数); 然后
#使用匿名函数, 列表解析式, 来打印输出一个列表中的奇数;

from random import randint

list1 = [randint(0, 20) for _ in range(10)]
qishu = filter(lambda x: x % 2 == 1, list1)

if __name__ == '__main__':

    print("列表为:")
    print(list1)
    print("列表中的奇数为:")
    print(list(qishu))